package com.jwt.demo.controller;

import com.jwt.demo.annotation.UserLoginToken;
import com.jwt.demo.domain.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class UserController {
    @RequestMapping("/user")
    @UserLoginToken
    public Object getUserInfo(){
        return new User(1,"lvjieinfo","666666");
    }
}
